# 跨文件的全局变量code，用于记录从验证码获取的code文本值
code = ''
flag, key, value = None, None, None
current_url = ''


# 设置全局变量的值
def set_global_code(val):
    global code
    code = val


def set_global_flag(val):
    global flag
    flag = val


def set_global_key(val):
    global key
    key = val


def set_global_value(val):
    global value
    value = val


def set_global_url(val):
    global current_url
    current_url = val


# 获取全局变量的值
def get_global_code():
    return code


def get_global_flag():
    return flag


def get_global_key():
    return key


def get_global_value():
    return value


def get_global_url():
    return current_url
